
import unittest

from parameterized import parameterized
from api.ihrm_login_api import IhrmLoginApi
from uilts.common_asserts import comm_asserts

from uilts.read_data import read_login_data


class TestLoginParams(unittest.TestCase):

    @parameterized.expand(read_login_data("login_data"))
    def test_login(self, req_body, status_code, success, code, message):
        resp = IhrmLoginApi.login_api(req_body)
        comm_asserts(self, resp, status_code, success, code, message)
